using DailyPoetryX.AzureStorage.Services;
using Microsoft.WindowsAzure.Storage;
using Moq;

namespace DailyPoetryX.AzureStorage.UnitTest.Helpers {
    /// <summary>
    /// Azure存储账户帮助类。
    /// </summary>
    public class AzureStorageAccountHelper {
        /// <summary>
        /// 获得Azure存储账户提供者Mock
        /// </summary>
        public static Mock<IAzureStorageAccountProvider>
            GetDevelopmentAccountProviderMock() {
            var mock = new Mock<IAzureStorageAccountProvider>();
            mock.Setup(p => p.GetAccount())
                .Returns(
                    CloudStorageAccount.Parse("UseDevelopmentStorage=true"));
            return mock;
        }
    }
}